package com.sss.hloster0308;

public class SalesEmployee extends ColaEmployee {
	// 属性
	private double sales;// 月销售额
	private double royalty;// 提成率

	public SalesEmployee() {
		super();
	}

	Company c = new Company();

	public SalesEmployee(String name, int birthday, int sales, double royalty) {
		super(name, birthday);
		this.sales = sales;
		this.royalty = royalty;
	}

	public int getSalary(int month) {
		sales = sales + super.getSalary(month) + sales * royalty;
		c.print(name, sales, month);
		return 0;
	}

	

	public void setSales(int sales) {
		this.sales = sales;
	}

	public double getRoyalty() {
		return royalty;
	}

	public void setRoyalty(double royalty) {
		this.royalty = royalty;
	}

}
